export default{
    state:{
        token:'',
        userInfo:{},
        status:false
    },
    mutations:{
        setToken( state,token ){
            state.token = token;
        },
        setUserInfo( state , info ){
            state.userInfo = info;
            state.status = true;
        },
		clearUser(state){
			state.token='';
			state.status=false;
			state.userInfo={};
		}
    }
}